.class Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;
.super Landroid/os/Handler;
.source "SimplePopNoteEditor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x0

    packed-switch v0, :pswitch_data_0

    .line 2
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto/16 :goto_0

    .line 3
    :pswitch_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/LinearLayout;

    move-result-object p1

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->e(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    goto/16 :goto_0

    .line 6
    :pswitch_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result p1

    if-nez p1, :cond_0

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->e(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I

    .line 9
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    goto/16 :goto_0

    .line 10
    :pswitch_2
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget p1, p1, Landroid/os/Message;->arg1:I

    invoke-virtual {v0, p1}, Landroid/app/Activity;->showDialog(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception p1

    .line 11
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_0

    .line 12
    :pswitch_3
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Z)V

    goto/16 :goto_0

    .line 14
    :pswitch_4
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/EditText;

    move-result-object v0

    iget-object v2, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 17
    iget-object v0, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v2, 0xa

    if-gt v0, v2, :cond_3

    .line 18
    :cond_1
    iget-object v0, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    if-eqz v0, :cond_2

    .line 19
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    .line 20
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->d(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)V

    .line 21
    :cond_3
    iget p1, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->b:I

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a$b;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a$b;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ScrollView;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    .line 23
    :pswitch_5
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    move-result-object v0

    iget-object p1, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 25
    :pswitch_6
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    move-result-object v0

    iget-object v2, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 27
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    move-result-object v0

    iget p1, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->b:I

    invoke-virtual {v0, v1, p1}, Landroid/widget/ScrollView;->scrollTo(II)V

    goto :goto_0

    .line 28
    :pswitch_7
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    .line 29
    iget v0, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->b:I

    .line 30
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    move-result-object v2

    invoke-virtual {v2, v1, v0}, Landroid/widget/ScrollView;->scrollTo(II)V

    .line 31
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    move-result-object v1

    iget-object p1, p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;->a:Ljava/lang/String;

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 32
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    move-result-object p1

    new-instance v1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a$a;

    invoke-direct {v1, p0, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a$a;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;I)V

    invoke-virtual {p1, v1}, Landroid/widget/ScrollView;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
